<template>
  <div class="flex home">
    <div class="home_l">
      <candiDate></candiDate>
    </div>
    <div class="flex_unit home_r">
      <div class="page">
        <div class="all">
          <img src="../../assets/top.png" class="page_img" />
          <div class="page_top">
            <div class="header_top">
              <span>Alice</span>
              <img src="../../assets/sex.png" />
            </div>
            <div class="information">
              <span>登记：2020-09-30</span>
              <button>待入司</button>
            </div>
          </div>
        </div>
        <img src="../../assets/weixin.png" class="page_icon" />
      </div>
      <div class="tab">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="first">
            <div class="list">
              <div class="list_data">
                <span class="max">出生日期：</span>
                <span>1998-09-21</span>
              </div>
              <div class="list_data">
                <span class="max">证件类型：</span>
                <span>身份证</span>
              </div>
              <div class="list_data">
                <span class="max">证件号码：</span>
                <span>320115198511281234</span>
              </div>
              <div class="list_data">
                <span class="max">手机号码：</span>
                <span>13722311232</span>
              </div>
              <div class="list_data">
                <span class="max">上一职业：</span>
                <span>检验员</span>
              </div>
              <div class="list_data">
                <span class="max">最高学历：</span>
                <span>本科</span>
              </div>
            </div>
            <div class="btn_last">
              <button class="measurement" @click="evaluationFn">
                面对面测评
              </button>
              <button class="invitation">邀请测评</button>
              <button class="editor">编辑</button>
            </div>
          </el-tab-pane>
          <el-tab-pane label="增员进度" name="second">
            <div class="increase">
              <div class="progress">
                <el-steps align-center :active="num" finish-status="success">
                  <el-step title="增员宝"></el-step>
                  <el-step title="天生赢家"></el-step>
                  <el-step title="面试"></el-step>
                  <el-step title="签约"></el-step>
                </el-steps>
              </div>
              <div>
                <div class="toady">今天</div>
                <div class="surface">
                  <div class="interview">
                    <div class="time">
                      <span>12:55</span>
                      <span>面试邀约</span>
                    </div>
                    <div class="time invite">
                      <span>10:19</span>
                      <span>天生赢家邀约</span>
                    </div>
                  </div>
                  <div class="line"></div>
                  <div class="interview_one toface">
                    <div class="time_one">
                      <span>111:00</span>
                      <span>已完成测评</span>
                    </div>
                  </div>
                </div>
                <div class="toady">昨天</div>
                <div class="surface">
                  <div class="interview taoch">
                    <div class="time">
                      <span>12:19</span>
                      <span>增员邀约</span>
                    </div>
                  </div>
                  <div class="lin"></div>
                  <div class="interview_one">
                    <div class="time_one">
                      <span>13:20</span>
                      <span>信息填写</span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </el-tab-pane>
          <el-tab-pane label="人才简历" name="third">
            <div class="tabs_box">
              <div class="resumeAdd">
                <div class="null_box">
                  <div class="null_img">
                    <img src="../../assets/null.png" />
                  </div>
                  <p class="group">暂无</p>
                </div>
                <div class="last_foot">
                  <div class="foot_add">
                    <div class="Is_invitation">
                      <img src="../../assets/resume2.png" />
                      <div class="tation">
                        <p>邀请</p>
                        <p>分享简历模版，邀请准增员人自助完善</p>
                      </div>
                    </div>
                    <div class="Is_invitation text">
                      <img src="../../assets/resume.png" />
                      <div class="tation">
                        <p>邀请</p>
                        <p>分享简历模版，邀请准增员人自助完善</p>
                      </div>
                    </div>
                  </div>
                  <div class="foot_add">
                    <div class="Is_invitation add">
                      <img src="../../assets/resume1.png" />
                      <div class="tation">
                        <p>邀请</p>
                        <p>分享简历模版，邀请准增员人自助完善</p>
                      </div>
                    </div>
                    <div class="Is_invitation action">
                      <img src="../../assets/icon.png" />
                      <div class="tation">
                        <p>邀请</p>
                        <p>分享简历模版，邀请准增员人自助完善</p>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </el-tab-pane>
          <el-tab-pane label="测评报告" name="fourth">
            <div class="tabs_box">
              <div class="conclusion_content">
                <div class="conclusion_title">您理想中的事业</div>
                <table class="conclusion_table" cellpadding="0" cellspacing="0">
                  <thead>
                    <tr>
                      <th></th>
                      <th>现状</th>
                      <th>理想期望值</th>
                      <th></th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td>生活水平</td>
                      <td>10.0</td>
                      <td>10.0</td>
                      <td>
                        <img src="../../assets/evaluation/t2.png" alt="" />
                      </td>
                    </tr>
                    <tr>
                      <td>学习成长</td>
                      <td>10.0</td>
                      <td>9.0</td>
                      <td>
                        <img src="../../assets/evaluation/t2.png" alt="" />
                      </td>
                    </tr>
                    <tr>
                      <td>工作自主</td>
                      <td>6.2</td>
                      <td>8.0</td>
                      <td>
                        <img src="../../assets/evaluation/t1.png" alt="" />
                      </td>
                    </tr>
                    <tr>
                      <td>收入丰厚</td>
                      <td>8.0</td>
                      <td>10.0</td>
                      <td>
                        <img src="../../assets/evaluation/t1.png" alt="" />
                      </td>
                    </tr>
                    <tr>
                      <td>发展空间</td>
                      <td>4.3</td>
                      <td>8.0</td>
                      <td>
                        <img src="../../assets/evaluation/t1.png" alt="" />
                      </td>
                    </tr>
                  </tbody>
                </table>
                <div class="describe">
                  <div class="describe_content">
                    <ul>
                      <li>
                        <label>生活平衡：</label>
                        <p>
                          您对生活和事业抱有崇高理想，能面对现实，遇见困难挫折能设法克服，能与人合作，创造事业。
                        </p>
                      </li>
                      <li>
                        <label>学习成长：</label>
                        <p>
                          给自己设置超出自身能力的目标，加大了“达标”的难度，又饱受“失败”的打击和折磨，理想不是简单的幻想，切忌好高骛远
                        </p>
                      </li>
                      <li>
                        <label>工作自主：</label>
                        <p>
                          您自立自强，当机立断。通常能够自作主张，独立完成自己的工作计划，不依赖别人，也不受社会舆论的约束。
                        </p>
                      </li>
                      <li>
                        <label>收入丰厚：</label>
                        <p>
                          收入满意度,是用于衡量个人对自身当前收入满意程度的指标。您当前的收入水平处于中等收入水平，未来还有望提高。
                        </p>
                      </li>
                    </ul>
                  </div>
                </div>
                <div class="conclusion_title">竞争力评估</div>
                <div class="k_lien_box">
                  <div class="k_lien">
                    <img src="@/assets/evaluation/chart.png" alt="" />
                  </div>
                  <ul class="assessment">
                    <li>
                      <label>社交竞争力</label>
                      <div>
                        <i>8.2</i>
                        <span>社交达人型</span>
                      </div>
                    </li>
                    <li>
                      <label>领袖潜能</label>
                      <div>
                        <i>7.1</i>
                        <span>团队协调型</span>
                      </div>
                    </li>
                    <li>
                      <label>持续学习力</label>
                      <div>
                        <i>6.2</i>
                        <span>学习爱好型</span>
                      </div>
                    </li>
                    <li>
                      <label>适应力</label>
                      <div>
                        <i>8.0</i>
                        <span>变化适应型</span>
                      </div>
                    </li>
                    <li>
                      <label>逻辑思维</label>
                      <div>
                        <i>4.3</i>
                        <span>逻辑清晰型</span>
                      </div>
                    </li>
                    <li>
                      <label>自我管理</label>
                      <div>
                        <i>6.0</i>
                        <span>计划型</span>
                      </div>
                    </li>
                  </ul>
                </div>
                <div class="conclusion_title">综合评价</div>
                <div class="describe">
                  <div class="describe_content">
                    <ul>
                      <li>
                        <p>
                          通过对您综合能力的评估，您有成为优秀营销员的潜力，建议您与营销员主管做进一步的沟通，深入了解您的现状及职业发展等，让友邦在未来帮助您提升个人能力和实现职业愿景。
                        </p>
                      </li>
                    </ul>
                  </div>
                </div>
                <div class="conclusion_title">个人优势</div>
              </div>
              <div class="null_box">
                <div class="null_img">
                  <img src="../../assets/null.png" />
                </div>
                <p class="group">暂无</p>
              </div>
            </div>
          </el-tab-pane>
        </el-tabs>
      </div>
    </div>
  </div>
</template>
<script>
import candiDate from "@/components/candidate";
export default {
  name: "TalentPool",
  components: {
    candiDate,
  },
  data() {
    return {
      num: 1,
      activeName: "first",
    };
  },
  methods: {
    evaluationFn() {
      this.$router.push({
        path: "/evaluation",
        query: {
          state: 2,
        },
      });
    },
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>
<style  scoped>
.home {
  height: 100%;
}
.page {
  display: flex;
  padding: 0.19rem 0.3rem 0.2rem 0.13rem;
  justify-content: space-between;
  align-items: center;
}
.tabs_box {
  height: 100%;
  overflow-y: auto;
}
.null_box {
  height: 3.61rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.all {
  display: flex;
  align-content: center;
  align-items: center;
}
.page .page_img {
  width: 0.4rem;
  height: 0.4rem;
}
.page .page_icon {
  width: 0.3rem;
  height: 0.3rem;
}
.page .page_top {
  padding-left: 0.1rem;
}
.page .header_top {
  display: flex;
}
.page .header_top span {
  font-size: 0.15rem;
  color: #5a6b80;
  letter-spacing: 0;
}
.page .header_top img {
  width: 0.2rem;
  height: 0.2rem;
  padding-left: 0.1rem;
}

.page .page_top .information {
  display: flex;
}
.page .page_top .information span {
  font-size: 0.12rem;
  color: #5a6b80;
  letter-spacing: 0;
}
.information button {
  color: #f5a623;
  border: 1px solid #f5a623;
  border-radius: 2px;
  font-size: 0.12rem;
  background: #fff;
  margin-left: 0.1rem;
}
.page_top .information img {
  display: block;
  width: 0.52rem;
  padding-left: 0.08rem;
}
.tab >>> .el-tabs__header {
  background: #fafafa;
  margin-bottom: 0;
  box-shadow: 10px -2px 15px -13px rgba(0, 0, 0, 0.2) inset;
}
.tab >>> .el-tabs__item {
  padding: 0 0.4rem;
  height: 0.44rem;
  line-height: 0.44rem;
  color: #999999;
}
.tab >>> .el-tab-pane {
  height: 100%;
}
.tab >>> .el-tabs__nav {
  padding-left: 0.24rem;
}
.tab >>> .el-tabs__active-bar {
  margin-left: 0.24rem;
}
.list {
  padding-left: 0.31rem;
}
.list_data {
  padding: 0.2rem 0rem 0.1rem 0;
  font-size: 0.15rem;
}
.max {
  padding-right: 0.23rem;
  color: #666666;
}
.btn_last {
  padding-top: 1.95rem;
  text-align: center;
  padding-bottom: 0.21rem;
}
.measurement {
  width: 1.3rem;
  height: 0.36rem;
  line-height: 0.36rem;
  text-align: center;
  background: #d41045;
  border-radius: 0.04rem;
  font-size: 0.16rem;
  color: #ffffff;
  border: 0;
}
.invitation {
  width: 1.3rem;
  height: 0.36rem;
  line-height: 0.36rem;
  text-align: center;
  background: #d41045;
  border-radius: 0.04rem;
  font-size: 0.16rem;
  color: #ffffff;
  border: 0;
  margin-left: 0.19rem;
  margin-right: 0.82rem;
}
.editor {
  width: 0.8rem;
  height: 0.36rem;
  background: #ffffff;
  border: 1px solid #dddfe6;
  border-radius: 0.04rem;
  border-radius: 0.04rem;
}
/**人才简历 */
.null_img img {
  width: 0.9rem;
  height: 0.9rem;
}
.null_img {
  text-align: center;
}
.group {
  font-size: 0.15rem;
  color: #666666;
  letter-spacing: 0;
  text-align: center;
}
.Is_invitation {
  /* width: 2.98rem; */
  /* height: 0.92rem; */
  opacity: 0.5;
  background: #e7f7ff;
  padding: 0.21rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 50%;
}
.Is_invitation img {
  width: 0.5rem;
  height: 0.5rem;
}
.tation {
  padding-left: 0.2rem;
}
.tation p:nth-child(1) {
  font-size: 0.16rem;
  color: #5a6b80;
  letter-spacing: 0;
}
.tation p:nth-child(2) {
  font-size: 0.14rem;
  color: #666666;
  letter-spacing: 0;
}
.last_foot {
  padding: 0 0.24rem 0.22rem 0.24rem;
}
.text {
  background: #eff1fe;
}
.foot_add {
  display: flex;
  width: 100%;
}
.add {
  background: #e8faf3;
}
.action {
  background: #ffeaf0;
}
.time {
  /* opacity: 0.08; */
  background: #1fa9da;
  border-radius: 0.24rem;
  width: 2.09rem;
  height: 0.4rem;
  line-height: 0.4rem;
  text-align: center;
  padding-left: 0.12rem;
  background: rgba(31, 169, 218, 0.08);
  color: #666666;
}
.time span:nth-child(2) {
  padding-left: 0.2rem;
  font-size: 0.16rem;
  color: #1fa9da;
}
.toady {
  background: #fafafa;
  height: 0.36rem;
  line-height: 0.36rem;
  padding-left: 0.47rem;
  font-size: 16px;
  color: #5a6b80;
  letter-spacing: 0;
  box-shadow: 10px -2px 15px -13px rgba(0, 0, 0, 0.2) inset;
}
.line {
  border: 1px solid #f0f2f5;
}
.lin {
  border: 1px solid #f0f2f5;
  height: 2.1rem;
}
.interview {
  width: 50%;
  /* border-right: 1px solid #f0f2f5; */
  padding: 0.16rem 0rem 0.15rem 0.78rem;
}
.invite {
  margin-top: 0.54rem;
}
.surface {
  display: flex;
}
.interview_one {
  /* padding: 0.6rem 0.4rem; */
  padding: 0.1rem 0.4rem;
}
.time_one {
  background: #ffe0e0;
  border-radius: 0.24rem;
  color: #666666;
  width: 2.09rem;
  height: 0.4rem;
  line-height: 0.4rem;
  text-align: center;
  padding-left: 0.12rem;
}
.time_one span:nth-child(2) {
  color: #d82b5a;
  font-size: 0.16rem;
  padding-left: 0.2rem;
}
.time_one span:nth-child(1) {
  color: #666666;
  font-size: 0.16rem;
}
.toface {
  padding: 0.6rem 0.4rem;
}
.taoch {
  padding-top: 0.6rem;
}
.progress {
  padding: 0.2rem 0;
}

.progress >>> .is-success .el-step__icon-inner.is-status {
  color: #d41045;
}
.progress >>> .el-step__title.is-success {
  color: #d41045;
}
.progress >>> .el-step__head.is-success {
  color: #d41045;
  border-color: #d41045;
}
.progress >>> .is-success .el-step__icon.is-text {
  border: 2px solid #d41045;
}
.tab {
  height: calc(100% - 0.8rem);
  overflow: hidden;
}
.tab >>> .is-active {
  color: #d41045;
  font-weight: bold;
}
.tab >>> .el-tabs {
  height: 100%;
}
.tab >>> .el-tabs__active-bar {
  background-color: #d41045;
}
.home .home_r {
  padding-bottom: 0;
}
.tab >>> .el-tabs__content {
  height: calc(100% - 0.44rem);
}
.tab >>> .el-tabs__nav-wrap::after {
  background-color: 0;
}
</style>
<style lang="less" scoped>
.k_lien_box {
  display: flex;
  justify-content: center;
  align-items: center;
  .k_lien {
    width: 2.45rem;
    margin-right: 0.3rem;
    min-width: 2.45rem;
    img {
      width: 100%;
      display: block;
    }
  }
  .assessment {
    width: 2.36rem;
    li {
      display: flex;
      margin-bottom: 0.08rem;
      label {
        font-size: 0.12rem;
        color: #666666;
        text-align: right;
        line-height: 0.3rem;
        width: 0.6rem;
        margin-right: 0.18rem;
      }
      div {
        width: 1.58rem;
        height: 0.3rem;
        background: rgba(255, 224, 224, 0.23);
        border-radius: 0.3rem;
        text-align: center;
        line-height: 0.3rem;
        i {
          font-style: normal;
          font-size: 0.18rem;
          color: #d41045;
          margin-right: 0.14rem;
        }
        span {
          font-size: 0.15rem;
          color: #d41045;
        }
      }
    }
  }
}
.conclusion_content {
  .conclusion_table {
    border: 1px solid #f9da9e;
    width: 4.74rem;
    margin: 0 auto;
    border-bottom: 0;
    border-right: 0;
    margin-bottom: 0.26rem;
    th,
    td {
      border-bottom: 1px solid #f9da9e;
      border-right: 1px solid #f9da9e;
      font-weight: normal;
      font-size: 0.12rem;
      text-align: center;
      padding: 0.04rem;
      img {
        width: 0.2rem;
        vertical-align: middle;
      }
    }
    th:nth-child(2n),
    td:nth-child(2n) {
      background: #fffcf6;
    }
    td:nth-child(1) {
      text-align: left;
      padding-left: 0.2rem;
    }
  }
  .describe {
    margin-left: 0.25rem;
    margin-bottom: 0.16rem;
    width: 5.5rem;
    border-radius: 0.05rem;
    padding: 0.1rem;
    background: linear-gradient(
      0deg,
      rgba(255, 213, 163, 0.11) 20%,
      rgba(255, 220, 169, 0.11) 100%
    );
    .describe_content {
      border: 1px solid rgba(249, 218, 158, 0.27);
      padding: 0.1rem;
      li {
        display: flex;
        label {
          min-width: 0.92rem;
          font-size: 0.15rem;
          color: #d41045;
          font-weight: 700;
          text-align: right;
          line-height: 0.24rem;
        }
        p {
          flex: auto;
          display: flex;
          line-height: 0.24rem;
          font-size: 0.15rem;
          color: #733a01;
        }
      }
    }
  }
}
.conclusion_title {
  padding-top: 0.2rem;
  height: 0.22rem;
  background: url("../../assets/evaluation/tit_bg.png") no-repeat center 0.2rem;
  background-size: 1.15rem 0.22rem;
  text-align: center;
  font-size: 0.16rem;
  font-weight: bold;
  color: #333333;
  margin-bottom: 0.14rem;
}
</style>